import request from '@/utils/request'

/**
 * 获取门店im状态
 * @returns {*}
 */
export const getShopsStatus = () => {
  return request.get('/store/settings/im/shops/status', {}, {})
}

/**
 * 更新门店im状态
 * @param data
 * @returns {*}
 */
export const updateShopsStatus = (data) => {
  return request.put('/store/settings/im/shops/status', data, {})
}

/**
 * 获取门店自动回复设置
 * @param shopId
 * @returns {*}
 */
export const getShopsAutoReplyConfig = (shopId) => {
  return request.get(`/store/settings/im/shops/${shopId}/auto-reply-config`, {}, {})
}

/**
 * 保存门店自动回复设置
 * @param data
 * @returns {*}
 */
export const saveShopsAutoReplyConfig = (data) => {
  return request.post('/store/settings/im/shops/auto-reply-config/save', data, {})
}
